-- GENERATED SPELL FOR [Claw Tentacle] --


function spell0_15725(pUnit, Event) --@Ground Rupture,Self--
pUnit:FullCastSpellOnTarget(26139,pUnit)
pUnit:RegisterEvent('Sorts_15725', 593, 1)
end

function spell1_15725(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(26141,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15725', 10271, 1)
end

function Sorts_15725(pUnit, Event)
local choix_sorts_15725 = math.random(0, 1)
if choix_sorts_15725 == 0 then
pUnit:RegisterEvent('spell0_15725', 1, 1)
end
if choix_sorts_15725 == 1 then
pUnit:RegisterEvent('spell1_15725', 1, 1)
end
end

function mob15725_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15725', math.random(1500, 3000), 1)
end

function mob15725_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15725_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15725_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15725, 1, 'mob15725_Action')
RegisterUnitEvent(15725, 2, 'mob15725_Leave')
RegisterUnitEvent(15725, 3, 'mob15725_Kill')
RegisterUnitEvent(15725, 4, 'mob15725_Die')
